package cn.liit.weixin.custommsg.model;

/**
 * 客服消息(音乐消息)
 * @author zhangboqi
 *
 */
public class MusicMsg extends BaseMsg{

	private Music music;

	public MusicMsg(String touser, String title,String description,String musicurl,String hqmusicurl,String thumb_media_id) {
		super(touser, MSGTYPE_MUSIC);
		this.music = new Music(title, description, musicurl, hqmusicurl, thumb_media_id);
	}

	public Music getMusic() {
		return music;
	}

	public void setMusic(Music music) {
		this.music = music;
	}
	public static class Music {

		private String title;
		private String description;
		private String musicurl;//音乐链接
		private String hqmusicurl;//高品质音乐链接，wifi环境优先使用该链接播放音乐
		private String thumb_media_id;//缩略图的媒体ID
		
		public Music(String title, String description, String musicurl,
				String hqmusicurl, String thumb_media_id) {
			super();
			this.title = title;
			this.description = description;
			this.musicurl = musicurl;
			this.hqmusicurl = hqmusicurl;
			this.thumb_media_id = thumb_media_id;
		}
		
		public String getTitle() {
			return title;
		}
		public void setTitle(String title) {
			this.title = title;
		}
		public String getDescription() {
			return description;
		}
		public void setDescription(String description) {
			this.description = description;
		}
		public String getMusicurl() {
			return musicurl;
		}
		public void setMusicurl(String musicurl) {
			this.musicurl = musicurl;
		}
		public String getHqmusicurl() {
			return hqmusicurl;
		}
		public void setHqmusicurl(String hqmusicurl) {
			this.hqmusicurl = hqmusicurl;
		}
		public String getThumb_media_id() {
			return thumb_media_id;
		}
		public void setThumb_media_id(String thumb_media_id) {
			this.thumb_media_id = thumb_media_id;
		}
	}
	
}
